﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;

/// <summary>
/// Summary description for BaseMasterPage
/// </summary>
public class BaseMasterPage : MasterPage
{
    public BaseMasterPage()
    {
        //
        // TODO: Add constructor logic here
        //
    }

    public Acms.AcmsControls.TemplatePage AcmsPage
    {
        get
        {
            if (Page is Acms.AcmsControls.TemplatePage)
            {
                return (Acms.AcmsControls.TemplatePage)Page;
            }
            else
            {
                throw new Acms.Exceptions.TemplateException("Master Page pust be used with a page that inherits from Acms.AcmsControls.TemplatePage");
            }

        }
    }
}
